package com.woniuxy.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 定义返回结果的格式的Bean
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultDto {
    public static ResultDto LOGIN_SUCCESS=new ResultDto(1001,"登录成功");
    public static ResultDto LOGIN_FAILURE=new ResultDto(-1001,"登录失败");
    public static ResultDto DELETE_USER_SUCCESS=new ResultDto(1002,"删除用户成功");
    public static ResultDto DELETE_USER_FAILURE=new ResultDto(-1002,"删除用户失败");
    public static ResultDto UPLOAD_FILE_FAILURE=new ResultDto(-1003,"上传失败");
    public static ResultDto USER_EXITS=new ResultDto(-1004,"用户已存在");
    public static ResultDto USER_ADD_SUCCESS=new ResultDto(2001,"成功增加用户");
    public static ResultDto USER_ADD_FAILURE=new ResultDto(-2001,"增加用户失败");
    public static ResultDto ROLE_GRANT_SUCCESS=new ResultDto(2002,"分配角色成功");
    public static ResultDto ROLE_GRANT_FAILURE=new ResultDto(-2002,"分配角色失败");
    public static ResultDto RIGHT_GRANT_SUCCESS=new ResultDto(2003,"分配权限成功");
    public static ResultDto RIGHT_GRANT_FAILURE=new ResultDto(-2003,"分配权限失败");
    public static ResultDto UPDATE_CUSTLOSTDEFER_SUCCESS=new ResultDto(2004,"修改暂存流失客户成功");
    public static ResultDto UPDATE_CUSTLOSTDEFER_MESSAGE=new ResultDto(20044,"你的选择好像不对哦,请不要选择确认流失状态！");
    public static ResultDto UPDATE_CUSTLOSTDEFER_FAILURE=new ResultDto(-2004,"修改暂存流失客户失败");
    public static ResultDto UPDATE_CUSTLOSTCONFIRE_SUCCESS=new ResultDto(2005,"修改确认流失客户成功");
    public static ResultDto UPDATE_CUSTLOSTCONFIRE_MESSAGE=new ResultDto(20055,"你的选择好像不对哦,请不要选择暂缓流失状态！");
    public static ResultDto UPDATE_CUSTLOSTCONFIRE_FAILURE=new ResultDto(-2005,"修改确认流失客户失败");
    public static ResultDto UPDATE_BASICDATA_SUCCESS=new ResultDto(2006,"编辑基础信息成功");
    public static ResultDto UPDATE_BASICDATA_FAILURE=new ResultDto(-2006,"编辑基础信息失败");
    public static ResultDto INSERT_BASICDATA_SUCCESS=new ResultDto(2007,"新增基础信息成功");
    public static ResultDto INSERT_BASICDATA_EXISTS=new ResultDto(2077,"编号重复啦，请更改");
    public static ResultDto INSERT_BASICDATA_FAILURE=new ResultDto(-2007,"新增基础信息失败");
    public static ResultDto DELETE_BASICDATA_SUCCESS=new ResultDto(2008,"删除成功");
    public static ResultDto DELETE_BASICDATA_FAILURE=new ResultDto(-2008,"删除失败");
    public static ResultDto SALECHANCE_ADD_SUCCESS=new ResultDto(5000,"增加销售机会成功");
    public static ResultDto SALECHANCE_ADD_FAILURE=new ResultDto(-5000,"增加销售机会失败");
    public static ResultDto SALECHANCE_DELETE_SUCCESS=new ResultDto(5001,"删除销售机会成功");
    public static ResultDto SALECHANCE_DELETE_FAILURE=new ResultDto(-5001,"删除销售机会失败");
    public static ResultDto DELETE_SUCCESS=new ResultDto(1000,"删除成功");
    public static ResultDto DELETE_FAILURE=new ResultDto(-1000,"删除失败");
    public static ResultDto UPDATE_SUCCESS=new ResultDto(2000,"更新成功");
    public static ResultDto UPDATE_FAILURE=new ResultDto(-2000,"更新失败");
    public static ResultDto REURTN_SUCCESS=new ResultDto(2010,"客户状态回归正常成功！");
    public static ResultDto REURTN_FAILED=new ResultDto(-2010,"客户状态回归正常失败！");
    public static ResultDto LOST_SUCCESS=new ResultDto(2011,"客户状态变为流失成功！");
    public static ResultDto LOST_FAILED=new ResultDto(-2011,"客户状态变为流失失败！");




    /**
     * 服务单结果集
     */
    public static ResultDto NEW_SERVICE_ORDER_FAILURE=new ResultDto(-1400,"创建服务单失败");
    public static ResultDto NEW_SERVICE_ORDER_SUCCESS=new ResultDto(1400,"创建服务单成功");
    public static ResultDto DISTRIBUTE_SERVICE_ORDER_SUCCESS=new ResultDto(1401,"分配服务单成功");
    public static ResultDto DISTRIBUTE_SERVICE_ORDER_FAILURE=new ResultDto(-1401,"分配服务单失败");
    public static ResultDto DEAL_SERVICE_SUCCESS=new ResultDto(1402,"处理服务单成功");
    public static ResultDto DEAL_SERVICE_FAILURE=new ResultDto(-1402,"处理服务单失败");
    public static ResultDto RESULT_SERVICE_SUCCESS=new ResultDto(1403,"反馈服务单成功");
    public static ResultDto RESULT_SERVICE_FAILURE=new ResultDto(-1403,"反馈服务单失败");
    public static ResultDto Feedback_SERVICE_SUCCESS=new ResultDto(1404,"归档服务单成功");
    public static ResultDto Feedback_SERVICE_FAILURE=new ResultDto(-1404,"归档服务单失败");
    /**
     * 基本信息
     */
    public static ResultDto SALECHANCE_UPDATE_SUCCESS=new ResultDto(5002,"操作成功");
    public static ResultDto SALECHANCE_UPDATE_FAILURE=new ResultDto(-5002,"操作失败");
    public static ResultDto SALECHANCE_ASSIGN_SUCCESS=new ResultDto(5003,"指派销售机会成功");
    public static ResultDto SALECHANCE_ASSIGN_FAILURE=new ResultDto(-5003,"指派销售机会失败");
    public static ResultDto DEVPLAN_SAVE_SUCCESS=new ResultDto(5004,"新建开发计划成功");
    public static ResultDto DEVPLAN_SAVE_FAILURE=new ResultDto(-5004,"新建开发计划失败");
    public static ResultDto DEVPLAN_UPDATE_SUCCESS=new ResultDto(5005,"保存成功");
    public static ResultDto DEVPLAN_UPDATE_FAILURE=new ResultDto(-5005,"保存失败");


    private int code;
    private String msg;
    private Object data;

    public ResultDto(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}
